From 18d230f854abf6b9b020cc2a87a045e8d93044ee Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 9 Apr 2006 02:15:33 +0000 Subject: [PATCH] Support '--without-libusb' on Windows build for both of those NT 3.5 guys that are still roaming the earth. --- gpsbabel/configure | 10 ++++++++-- gpsbabel/configure.in | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/gpsbabel/configure b/gpsbabel/configure index bd5ea3653..b154f56de 100755 --- a/gpsbabel/configure +++ b/gpsbabel/configure @@ -2495,8 +2495,14 @@ fi case "$target" in *-*-cygwin* | *-*-mingw32*) - OSJEEPS=jeeps/gpsusbwin.o - USB_LIBS=-lsetupapi + if test "$with_libusb" = no ; then + echo "$as_me:$LINENO: result: USB skipped" >&5 +echo "${ECHO_T}USB skipped" >&6 + OSJEEPS=jeeps/gpsusbstub.o + else + OSJEEPS=jeeps/gpsusbwin.o + USB_LIBS=-lsetupapi + fi ;; *) echo "$as_me:$LINENO: checking for libusb" >&5 diff --git a/gpsbabel/configure.in b/gpsbabel/configure.in index 25867419f..f2ae19c11 100644 --- a/gpsbabel/configure.in +++ b/gpsbabel/configure.in @@ -23,8 +23,13 @@ AC_CHECK_LIB([m], [cos]) case "$target" in *-*-cygwin* | *-*-mingw32*) - OSJEEPS=jeeps/gpsusbwin.o - USB_LIBS=-lsetupapi + if test "$with_libusb" = no ; then + AC_MSG_RESULT(USB skipped) + OSJEEPS=jeeps/gpsusbstub.o + else + OSJEEPS=jeeps/gpsusbwin.o + USB_LIBS=-lsetupapi + fi ;; *) AC_MSG_CHECKING(for libusb) -- 2.30.2